<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
<title>Mobilebone.js API文档-Mobilebone.remove</title>
<link rel="stylesheet" href="../src/mobilebone.css">
<link rel="stylesheet" href="docs.css">
</head>

<body>
<aside></aside>
<div class="page out">
	<div class="content">
    	<h2>Mobilebone.remove(domOrId)</h2>
        <p>（v2.7.0+）清除页面级别的DOM元素，并连带id标识和缓存一起清除。</p>
        <h3>参数</h3>
        <ul>
            <li><code>domOrId</code> 页面对应DOM元素（默认指类名是<code>.page</code>的元素）或需要删除页面id。必须参数。</li>
        </ul>
        <h3>返回值</h3>
        <p>-</p>
        <h3>使用示例</h3>
        <pre><span class="comment">// 移除id为idJustUnique的页面</span>
Mobilebone.remove("idJustUnique");

<span class="comment">// 移除类名为.pageRootReload的所有页面</span>
[].slice.call(document.querySelectorAll('.pageRootReload')).forEach(function (page) {
    Mobilebone.remove(page);
});</pre>
    </div>
</div>

<script src="../src/mobilebone.js"></script>
<script>
Mobilebone.captureLink = false;
window.navKey = "createPage";
</script>
<script src="nav.js"></script>
<script src="docs.js"></script>
</body>
</html>
